package com.springboot.Thread;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author 杨志远[of2551]
 *         company qianmi.com
 *         Date    2017-05-05
 */
@Service
@Slf4j
public class AsyncTaskService {

    @Async
    public void executeAsyncTask(Integer i){
      log.info("异步"+i);
    }

    public void executeAsyncTaskPlus(Integer i){
        log.info("异步plus"+(i+1));
    }


}
